#define layout()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

<link rel="stylesheet" href="/js/layui/css/layui.css"/>

<script src="/js/jquery-3.2.0.min.js" type="text/javascript" ></script>
<script src="/js/layui/layui.js" type="text/javascript"></script>

<style type="text/css">  
html{height:100%}  
body{height:100%;margin:0px;padding:0px}
</style>  
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header" style="background: #092C66;">
	  		<div class="layui-logo" style="background: url()"></img></div>		  	
		  	<ul class="layui-nav layui-layout-right">
		    	<li class="layui-nav-item">
		      		<a href="javascript:;"><img src="http://t.cn/RCzsdCq" class="layui-nav-img">用户</a>
	      			<dl class="layui-nav-child">
	        			<dd><a href="">基本资料</a></dd>
	        			<dd><a href="">安全设置</a></dd>
	      			</dl>
		    	</li>
		    	<li class="layui-nav-item"><a href="/login">退出</a></li>
		  	</ul>
		</div>
	  
	  	<div class="layui-side layui-bg-black" style="background: #105896 !important;">
	    	<div class="layui-side-scroll">
	     	 <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
	      		<ul class="layui-nav layui-nav-tree"  lay-filter="test">
		        	<li class="layui-nav-item"><a href="/user">首页</a></li>
       	 			<li class="layui-nav-item">
	          			<a href="javascript:;">数据管理</a>
          				<dl class="layui-nav-child">
            				<dd><a href="/terminal">设备</a></dd>
            				<dd><a href="/msg">mqtt消息</a></dd>
            				<dd><a href="/user">用户</a></dd>
	          			</dl>
       	 			</li>
	      		</ul>
    		</div>
  		</div>
	  
  		<div class="layui-body">
    		<!-- 内容主体区域 -->
    		#@main()
  		</div>
	  
  		<div class="layui-footer">
    		<!-- 底部固定区域 -->
	    	
  		</div>
	</div>
	<script type="text/javascript">
		layui.use('element', function(){
	  		var element = layui.element;
	  
		});
	</script>
</body>
</html>
#end